package cn.leestudio.restlib;

public abstract class RestCallback<T> {

    public void start(){

    }

    public void error(String code, String errorMsg){

    }

    public void errWithJson(String code, String result){

    }

    public void cache(T t){

    }

    public void stop(){

    }

    public abstract void success(T t);
}